<%@ include file="/WEB-INF/templates/includes/taglibs.jsp"%>

<c:if test="${sr.showPagination}">
    <div class="pagination">
        <ul>
        <c:if test="${sr.showPrevButton}">
            <li>
                <a href="?page=${sr.currentPage - 1}&searchFor=${criteria}" class="pagination-button">
                    &lt;&lt;
                </a>
            </li>
        </c:if>
        <li>
        <span class="pagination-label">
            page ${sr.currentPage} of ${sr.totalPages}
        </span>
        </li>
        <c:if test="${sr.showNextButton}">
            <li>
                <a href="?page=${sr.currentPage + 1}&searchFor=${criteria}" class="pagination-button">
                    &gt;&gt;
                </a>
            </li>
        </c:if>
        </ul>
    </div>
</c:if>
